using System;
using System.Collections.Generic;
using System.Text;

namespace NetSpider
{
    public class NullContent : IContent
    {
        public static readonly IContent Value = new NullContent();

        private NullContent() { }

        private readonly byte[] _content = new byte[0];

        public string ContentType
        {
            get { return string.Empty; }
        }

        public long Length
        {
            get { return 0; }
        }

        public byte[] GetContent()
        {
            return _content;
        }

        public string GetText()
        {
            return string.Empty;
        }

        public void Fill(byte[] content)
        {
        }

        public string Uri
        {
            get { return string.Empty; }
        }

        public void Dispose()
        {
        }
    }
}
